package com.dimples.dd.system.convert;

import com.dimples.dd.common.pojo.PageResult;
import com.dimples.dd.system.model.entity.SystemGatewayRouteDO;
import com.dimples.dd.system.model.form.GatewayRouteForm;
import com.dimples.dd.system.model.vo.GatewayRoutePageVO;
import org.mapstruct.Mapper;

/**
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2024/9/9
 */
@Mapper(componentModel = "spring")
public interface GatewayRouteConvert {

    SystemGatewayRouteDO form2Entity(GatewayRouteForm gatewayRouteForm);

    GatewayRouteForm entity2Form(SystemGatewayRouteDO gatewayRouteDO);

    PageResult<GatewayRoutePageVO> page2VO(PageResult<SystemGatewayRouteDO> doPageResult);

    GatewayRoutePageVO entity2VO(SystemGatewayRouteDO gatewayRouteDO);
}

